<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
	<div class="cf">
		<div class="fl">
			<a class="btn" href="{:U('add')}">新增分类</a>
			<button class="btn ajax-post confirm" url="{:U('del')}" target-form="ids">删除分类</button>
		</div>
	</div>
	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<table class="">
			<thead>
				<tr>
					<th class="row-selected"><input class="check-all" type="checkbox"/></th>
					<th>编号</th>
					<th>分类名称</th>
					<th>创建时间</th>
					<th>备注</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<notempty name="_list">
				<volist name="_list" id="vo">
				<tr>
					<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
					<td>{$vo.id}</td>
					<td>{$vo.title}</td>
					<td>{$vo.create_time|time_format}</td>
					<td>{$vo.remark}</td>
					<td>{$vo.status|get_status_title}</td>
					<td>
						<a href="{:U('edit?id='.$vo['id'])}">修改</a>
						<eq name="vo.status" value="1">
						<a class="ajax-get" href="{:U('forb?id='.$vo['id'])}">{$vo.status|show_status_op}</a>
						<else/>
						<a class="ajax-get" href="{:U('rest?id='.$vo['id'])}">{$vo.status|show_status_op}</a>
						</eq>
						<a class="ajax-get confirm" href="{:U('del?id='.$vo['id'])}">删除</a>
					</td>
				</tr>
				</volist>
			<else/>
				<tr>
					<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
				</tr>
			</notempty>
			</tbody>
		</table>
	</div>
	<!-- 分页 -->
	<div class="page">
		{$_page}
	</div>
</block>